lib: Fix a leak in remote parsing
authorColin Walters <walters@verbum.org>
Wed, 11 May 2016 17:32:40 +0000 (13:32 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 9 Jun 2016 21:10:35 +0000 (21:10 +0000)
commit0f7bf7be95864bb165fd52748edba847db2418b3
tree912537592f9bf241fb68658518869d4aca86a00f
parent04ca15cb0e860a928bd342652d0c4ba0789a987b
lib: Fix a leak in remote parsing

As the docs say, `g_regex_match()` still allocates a match even if it
returns `FALSE`.  Using `g_autoptr` is just plain better.

Closes: #292
Approved by: krnowak
src/libostree/ostree-repo.c